import { http } from 'jindai-api'

export const fetchList = (params) => http.get('items', { params })

export const fetchView = (id) => http.get(`item/${id}`)

export const collect = (id) => http.put(`item/${id}/collect`)

export const approve = (id) => http.put(`item/${id}/approve`)
